package com.dragon.upms.biz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dragon.upms.api.entity.SysLog;
import com.dragon.upms.biz.mapper.SysLogMapper;
import com.dragon.upms.biz.service.SysLogService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @date: 2024/9/19 10:31
 * @author: ybl
 */
@Service
public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> implements SysLogService {

    /**
     * 插入日志
     * @param sysLog 日志对象
     * @return true/false
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public Boolean saveLog(SysLog sysLog) {
        baseMapper.insert(sysLog);
        return Boolean.TRUE;
    }

}
